package com.brillilab.service.core.inventory;

import java.util.List;

import com.brillilab.common.entity.PageVo;
import com.brillilab.domain.enums.inventory.InventoryRecordEnum;
import com.brillilab.domain.po.inventory.InventoryRecord;
import com.brillilab.domain.vo.user.UserInfoVo;

/**
 * 试剂使用记录
 * @author lj
 *
 */
public interface IInventoryRecordService {

	InventoryRecord insert(InventoryRecord entity);

	boolean deleteById(Long id);

	boolean updateById(InventoryRecord entity);

	InventoryRecord selectById(Long id);
	/**
	 * 获取使用记录
	 * @param kitId
	 * @param pageNum
	 * @param pageSize
	 * @return
	 */
	PageVo<InventoryRecord> selectList(Long kitId, int pageNum, int pageSize);
	
	/**
	 * 添加使用记录
	 * @param urs
	 * @param kitId
	 * @param operate
	 * @return
	 */
	InventoryRecord add(UserInfoVo urs,Long kitId,InventoryRecordEnum operate);
	
	/**
	 * 添加使用记录
	 * @param urs
	 * @param kitIds
	 * @param operate
	 * @return
	 */
	void add(UserInfoVo urs,List<Long> kitIds,InventoryRecordEnum operate);
}
